<?php
use yii\helpers\Url;
  $this->title = '首信易充值结果';
//test
/*$v_pstatus=1;
$v_oid=1;
$v_pmode='zhongxinyinhang ';
$v_pstring='支付完成';
$v_amount=100.00;
http://localhost/web/site/payeasertn?v_md5info=4069b0e8c9843e0240c49bf783b0c02d&v_md5money=34f71cb49cf418cceca72dcad7bea1cb&v_pstatus=1
http://localhost/web/site/payeasertn?v_md5info=d3ddeb40f731984c0b5e2916a398ccc6&v_md5money=34f71cb49cf418cceca72dcad7bea1cb&v_pstatus=20
http://localhost/web/site/payeasertn?v_md5info=9275c14c02e0db6a9aa0b947c7a654fd&v_md5money=34f71cb49cf418cceca72dcad7bea1cb&v_pstatus=30
*/
echo "<br>";
echo '<section class="container">';

if($md5info_verify!=0){
  //验证未通过
  echo '<div class="card">';
  echo '<table class="" style="max-width:400px;margin:auto;">';
    echo '<tr><td><h1><i class="fa fa-times-circle alert-danger"></i></h1></td><td><h3>充值返回结果未能通过签名验证</h3></td></tr>';
  echo '</table>';
  echo '</div>';
  return;
}
if($md5money_verify!=0){
  //验证未通过
  echo '<div class="card">';
  echo '<table class="" style="max-width:400px;margin:auto;">';
    echo '<tr><td><h1><i class="fa fa-times-circle alert-danger"></i></h1></td><td><h3>充值返回结果未能通过签名验证</h3></td></tr>';
  echo '</table>';
  echo '</div>';
  return;
}

echo '<div class="card">';
if($v_pstatus==1){
?>
<table class='table' style='max-width:400px;margin:auto;'>
  <tr><td><h1><i class="fa fa-check-circle alert-info"></i></h1></td><td><h3>充值请求订单已成功提交</h3></td></tr>

  <tr><td>金额(人民币)</td><td><b style='color:red;'><?=number_format($v_amount,2)?></b></td></tr>
  <tr><td>订单编号</td><td><b><?=$v_oid?></b></td></tr>

</table>
<?php
}else if($v_pstatus==20){
?>
<table class='table' style='max-width:400px;margin:auto;'>
  <tr><td><h1><i class="fa fa-check-circle alert-info"></i></h1></td><td><h3>充值成功</h3></td></tr>

  <tr><td>金额(人民币)</td><td><b style='color:red;'><?=number_format($v_amount,2)?></b></td></tr>
  <tr><td>订单编号</td><td><b><?=$v_oid?></b></td></tr>
</table>
<?php




}else if($v_pstatus==30){
?>
<table class='table' style='max-width:400px;margin:auto;'>
  <tr><td><h1><i class="fa fa-times-circle alert-danger"></i></h1></td><td><h3>充值失败</h3></td></tr>
</table>
<?php
}else{
 ?>
 <table class='table' style='max-width:400px;margin:auto;'>
   <tr><td><h1><i class="fa fa-times-circle alert-danger"></i></h1></td><td><h3>充值失败</h3></td></tr>
 </table>
 <?php
 }
 echo '</div>';
  ?>

  </section>
